import 'package:dio/dio.dart';
import 'package:sainbainu/common/http/http.dart';

class VersionApi {
  /// 新版本
  Future<Map<String, dynamic>> newVersion(
    Map<String, dynamic> params,
  ) async {
    Response res = await Http.get(
      '/api/social/app_version/newly_version',
      params: params,
    );
    return res.data;
  }

  /// 版本列表
  Future<Map<String, dynamic>> versionList(
    Map<String, dynamic> params,
  ) async {
    Response res = await Http.get(
      '/api/social/app_version/list',
      params: params,
    );
    return res.data;
  }
}
